<template>
  <span>
    {{ date }}
  </span>
</template>

<script>
import {parseTime} from "@/utils";
/**
 * 日期显示
 * @author maolin
 */
export default {
  name: "ErpViewDate",
  props: {
    /**
     * 值
     * @public
     */
    value: {
      type: [String, Number],
      default: ''
    }
  },
  computed: {
    date () {
      return parseTime(this.value, '{y}-{m}-{d}');
    }
  }
};
</script>

<style scoped>

</style>
